#pragma once


// HotKeyEdit

class HotKeyEdit : public CEdit
{
	DECLARE_DYNAMIC(HotKeyEdit)

public:
	HotKeyEdit();
	virtual ~HotKeyEdit();


// 	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
// 	afx_msg void OnSysChar(UINT nChar, UINT nRepCnt, UINT nFlags);
// // 	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//  	afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	void SetHotKey(WPARAM nChar);
// 	virtual BOOL PreTranslateMessage(MSG* pMsg);
// 	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	UINT GetVKey() const { return mVKey; }
	UINT GetModifier() const { return mModifier; }

protected:

	bool IsShiftPress();
	bool IsAltPress();
	bool IsCtrlPress();

	UINT mModifier;
	UINT mVKey;
	DECLARE_MESSAGE_MAP()
};


